package com.sec.android.app.myfiles.module.local.foldertree;

import com.sec.android.app.myfiles.provider.DbTableInfo;

public class FolderTreeDbTableInfo extends DbTableInfo {

    private static FolderTreeDbTableInfo mInstance = null;

    public static DbTableInfo getInstance() {
        if (mInstance == null) {
            mInstance = new FolderTreeDbTableInfo();
        }

        return mInstance;

    }

    protected FolderTreeDbTableInfo() {
        mTableColumn.add(new DB_Column(COLUMN_ID.ID, "_id", "integer PRIMARY KEY"));
        mTableColumn.add(new DB_Column(COLUMN_ID.PATH, "path", "text COLLATE NOCASE"));
        mTableColumn.add(new DB_Column(COLUMN_ID.NAME, "name", "text COLLATE NOCASE"));
        mTableColumn.add(new DB_Column(COLUMN_ID.DATE, "date", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.IS_HIDDEN, "is_hidden", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.ITEM_COUNT, "item_count", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.ITEM_COUNT_HIDDEN, "item_count_hidden", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.OPENED, "opened", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.FILE_TYPE, "file_type", "integer"));
    }

    @Override
    public String getTableName() {
        return "folderTree";
    }

    @Override
    public boolean isRealDb() {
        return false;
    }
}
